package com.leather.admin.feignclient;

import com.leather.admin.config.FeignConfig;
import com.leather.admin.feignclient.impl.GoodsTypeClientHystrix;
import com.leather.common.entity.GoodsType;
import com.leather.common.result.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "campus-market", configuration = FeignConfig.class, fallback = GoodsTypeClientHystrix.class)
public interface GoodsTypeClient {


    @GetMapping("/goodstypeindex")
    Object goodsTypeIndex();

    @PostMapping("addgoodstype")
    Result addGoodsType(@RequestBody GoodsType goodsType);

}
